<include file="public@header"/>
</head>
<body>
    <div class="lyear-layout-web">
        <div class="lyear-layout-container">
            <!--页面主要内容-->
            <main class="lyear-layout-content">
              
                <div class="container-fluid">
                
                    <div class="row">
                       <div class="col-md-12">
                            <div class="card">
                                <ul class="nav nav-tabs">
                                    <li class="active"><a href="{:url('storage/index')}">{:lang('ADMIN_STORAGE_INDEX')}</a></li>
                                </ul>
                                <div class="card-body">
                                    <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('storage/settingPost')}">

                                        <div class="form-group">
                                            <label for="input-type" class="col-sm-2 control-label">存储类型</label>
                                            <div class="col-md-6 col-sm-10">
                                                <select class="form-control" name="type" id="input-type">
                                                    <foreach name="storages" item="vo">
                                                        <php>$type_selected=isset($type)&&$type==$key?"selected":"";</php>
                                                        <option value="{$key}" {$type_selected}>{$vo.name}</option>
                                                    </foreach>
                                                </select>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <div class="col-sm-offset-2 col-sm-10">
                                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">{:lang('SAVE')}</button>
                                            </div>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </main>
        </div>
    </div>
<script src="__TMPL__/public/assets/js/admin.js"></script>
</body>
</html>